import request from '@/utils/request'

// 查询招聘会列表
export function listJobFair(query) {
  return request({
    url: '/recruit/jobFair/list',
    method: 'get',
    params: query
  })
}

// 查询招聘会详细
export function getJobFair(jobFairId) {
  return request({
    url: '/recruit/jobFair/' + jobFairId,
    method: 'get'
  })
}

// 新增招聘会
export function addJobFair(data) {
  return request({
    url: '/recruit/jobFair',
    method: 'post',
    data: data
  })
}

// 修改招聘会
export function updateJobFair(data) {
  return request({
    url: '/recruit/jobFair',
    method: 'put',
    data: data
  })
}

// 删除招聘会
export function delJobFair(jobFairId) {
  return request({
    url: '/recruit/jobFair/' + jobFairId,
    method: 'delete'
  })
}
